package com.spring.service.impl;

import com.spring.respone.ApiRestResponse;
import com.spring.service.IdentificationService;
import com.spring.until.IdUtil;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

@Service
public class IdentificationServiceImpl implements IdentificationService {
    @Override
    public ApiRestResponse identification(HttpServletRequest request) {
        String id = request.getParameter("id") ;
        String name = request.getParameter("name") ;
        return  ApiRestResponse.success().setStatus(1).setMsg("过") ;
//        boolean ok = IdUtil.post(id,name) ;
//        if (ok){
//            return  ApiRestResponse.success(1) ;
//        }else{
//            return ApiRestResponse.error(0,"error") ;
//        }
    }
}
